import { getserviceOrder } from '@/api/serviceOrder';

export default {
    namespaced: true,
    state: {
        serviceOrderList: {}
    },
    getters: {
        getStuList(state) {
            return state.serviceOrderList
        }
    },
    mutations: {
        getServiceOrderListMutation(state, payload) {
            state.serviceOrderList = payload;
        }
    },
    actions: {
        getServiceOrderListAction({commit},payload) {
            getserviceOrder().then(( res ) => {
                commit('getServiceOrderListMutation', res)
            })
    }
    }
}